<?php if($this->session->flashdata('successMessage')) : ?>
    <div class="alert alert-success">
        <button type="button" class="close" data-dismiss="alert">×</button>
        <?php echo $this->session->flashdata('successMessage'); ?>
    </div>
<?php elseif($this->session->flashdata('infoMessage')) : ?>
    <div class="alert alert-info">
        <button type="button" class="close" data-dismiss="alert">×</button>
        <?php echo $this->session->flashdata('infoMessage'); ?>
    </div>
<?php elseif($this->session->flashdata('errorMessage')) : ?>
    <div class="alert alert-danger">
        <button type="button" class="close" data-dismiss="alert">×</button>
        <?php echo $this->session->flashdata('errorMessage'); ?>
    </div>
<?php endif; ?>